﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Microsoft.Practices.Unity;
using SISLOG.BusinessEntities;
using SISLOG.BusinessLogic;


namespace SISLOG.Web
{
    public partial class frmUsuario : BasePage<frmUsuario> //System.Web.UI.Page
    {

        [Dependency]
        public IUsuarioBL UsuarioBL { get; set; }

        [Dependency]
        public IAreaBL AreaBL { get; set; }


        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void ObjectDataSourceUsuario_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = UsuarioBL;
        }

        protected void ObjectDataSourceUsuario_ObjectCreating1(object sender, ObjectDataSourceEventArgs e)
        {
            e.ObjectInstance = UsuarioBL;
        }

        /*protected void gvUsuario_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Editar")
            {
                gvUsuario.SelectRow(int.Parse(e.CommandArgument.ToString()));
                Usuario tempU = new Usuario();
                tempU = UsuarioBL.GetAllFromUsuarioByIdUsuario(int.Parse(gvUsuario.SelectedValue.ToString())); 
            }
        }*/
    }
}